package com.evaluation.dao.config;

import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Sort;

public class EvalPageRequest extends PageRequest {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8984007408248081104L;
	
	private String totalSql;
	
	protected EvalPageRequest(int pageNumber, int pageSize, Sort sort) {
		super(pageNumber, pageSize, sort);

	}
	
	public static EvalPageRequest of(int pageNumber, int pageSize) {
		return of(pageNumber, pageSize, Sort.unsorted());
	}

	public static EvalPageRequest of(int pageNumber, int pageSize, Sort sort ) {
		return new EvalPageRequest(pageNumber, pageSize, sort);
	}
	
	public void setTotalSql( String totalSql ) {
		this.totalSql = totalSql;
	}
	
	public String getTotalSql() {
		return this.totalSql;
	}
}
